﻿@model Pypin.usuario

@{
    ViewBag.Title = "Editar";
}

<h2>Editar</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

   <fieldset>
        <legend>usuario</legend>

        <div class="editor-label">
           Empresa
        </div>
        <div class="editor-field">
            @Html.DropDownList("idEmpresa", String.Empty)
            @Html.ValidationMessageFor(model => model.idEmpresa)
        </div>

        <div class="editor-label">
            Rol
        </div>
        <div class="editor-field">
            <select name="Rol" style = "3">
            <option value="S">SuperAdmin</option>
            <option value="A">Admin</option>
            <option value="U">Usuario</option>
            </select>
            @Html.ValidationMessageFor(model => model.Rol)
        </div>

        <div class="editor-label">
            Usuario
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Usuario1)
            @Html.ValidationMessageFor(model => model.Usuario1)
        </div>

        <div class="editor-label">
            Contraseña
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Contraseña)
            @Html.ValidationMessageFor(model => model.Contraseña)
        </div>

        <div class="editor-label">
            EMail
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EMail)
            @Html.ValidationMessageFor(model => model.EMail)
        </div>

        <div class="editor-label">
            Teléfono 
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Telefono)
            @Html.ValidationMessageFor(model => model.Telefono)
        </div>

        <div class="editor-label">
            Celular
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Celular)
            @Html.ValidationMessageFor(model => model.Celular)
        </div>

        <div class="editor-label">
             Dirección
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Direccion)
            @Html.ValidationMessageFor(model => model.Direccion)
        </div>

        <p>
            <input type="submit" value="Guardar" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Volver a la lista", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
